package org.example.pmsystem.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.pmsystem.entity.Staff;
import org.example.pmsystem.entity.User;
import org.example.pmsystem.entity.UserRole;

import java.util.List;

@Mapper
public interface UserMapper {
    User selectUserByuserid(String userid);
    User getUserRoleByuserid(@Param("userid") String userid);
    List<User> getAllUser();
    void insertUser(User user);
//    void insertStaff(Staff staff);
    int checkUserRole(UserRole userRole);
//    int checkStaffBySno(String sNo);
    void insertUserRole(UserRole userRole);
    void updateUser(User user);
//    void updateStaff(Staff staff);
    void deleteUserRole(UserRole userRole);
//    void deleteStaffBySno(String sno);
    void deleteUserByuserid(@Param("userid") String userid);


//    Staff selectStaffBySno(String sno);
}